package vip.xiaonuo.biz.modular.column.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import vip.xiaonuo.common.pojo.CommonFile;

import javax.validation.constraints.NotNull;

@Data
public class BizColumnAddParam {


    @NotNull(message = "栏目名称不能为空")
    @ApiModelProperty("栏目名称")
    private String name;

    @NotNull(message = "封面不能为空")
    @ApiModelProperty("封面")
    private CommonFile cover;

    @NotNull(message = "描述不能为空")
    @ApiModelProperty("描述")
    private String remark;

    @NotNull(message = "浏览量不能为空")
    @ApiModelProperty("浏览量")
    private Integer viewCount;

    @NotNull(message = "栏目排序码不能为空")
    @ApiModelProperty("排序码")
    private Integer sortCode;
}
